#include <stdio.h>
struct 
{
	unsigned char  a: 2;
	unsigned char  b: 1;
	unsigned char  c: 1;
//	unsigned char   : 2;
	unsigned char  d: 1;	 		
} flag;
//  xx x x x x xx
//   d     c b  a
int main()
{
	flag.a = 2;
	flag.b = 1;
	flag.c = 0;	
	flag.d = 1;	
	
    printf("%#x\n",flag);	//0001 0110
	
	return 0;
}

